<?
	set_time_limit(0);
	
	include_once "header.php";
	$kurSql  = mysql_query("SELECT * FROM dovizkur ORDER BY id DESC LIMIT 1");
	if($kurlar = mysql_fetch_assoc($kurSql))
	{
		$doviz_kurlari = array( "usd" => array("alis" => $kurlar['ua'], "satis" => $kurlar['us']),
										"euro" => array("alis" => $kurlar['ea'], "satis" => $kurlar['es']),
										"gbp" => array("alis" => $kurlar['ga'], "satis" => $kurlar['gs']),
										"yen" => array("alis" => $kurlar['ya'], "satis" => $kurlar['ys'])
									);
	}
	
	$xmlDovizTuru = "usd";		//-> usd:Dolar		euro:Euro		gbp:Sterlin		yen:Japon Yen' i
	$xmlUrl = "http://www.4cmusic.com/get_stok_xml_marka.php?bayi_no=6131&sifre=diyez87745";
	
	$xmlString = file_get_contents($xmlUrl);
	
	if($xmlSource = simplexml_load_string($xmlString))
	{
		echo '<pre>';
		print_r($xmlSource);
		echo '</pre>';	
	}
	else
	{
		echo 'dosya yüklenemedi.';
	}
	
?>